package com.aaa.book_mall.dao;

import com.aaa.book_mall.entity.Department;

import java.util.List;
import java.util.Map;

public interface DepartmentDao {
    /**
     * 查询部门的信息
     * @param department
     * @return
     */
    List<Map<String, Object>> getAllDempartment(Department department);

    /**
     * 查询信息的总条数
     * @param department
     * @return
     */
    int getBookCount(Department department);
    /**
     * 根据deptid删除department
     * @return
     */
    int delDeptidById(Integer deptid);
    /**
     * 添加部门方法
     * @param department
     * @return
     */
    int insertDepartment(Department department);

    /**
     * 修改部门的内容
     * @param department
     * @return
     */
    int updateDepartment(Department department);

    /**
     * 修改部门启用和禁用状态
     * @param deptid
     * @param status
     * @return
     */
    int updateStatus(Integer deptid, Integer status);
}
